<?php

namespace App\Models\System;

use App\Models\BaseModel;

class CurrencyModel extends BaseModel
{
    protected $table = 'sys_currency';

    protected $primaryKey = 'id';

    public $dateFormat = 'U';

    public function getTitles($key='id')
    {
        return self::where('status',1)->pluck('title',$key)->toArray();
    }

    public function getInfo(){
        return self::where('status',1)->get()->toArray();
    }
}
